data = load('ex1data1.txt');
x = data(:,1);
y = data(:,2);
m = length(y);
plotData(x,y);

x = [ones(m,1),data(:,1)];
theta = zeros(2,1);

iterations = 1500;
alpha = 0.01;
computeCost(x,y,theta);

theta = gradientDescent(x,y,theta,alpha,iterations);
theta(1)
theta(2)


